#!/usr/bin/osascript

tell application "System Events"
    set appList to the name of every process whose background only is false and name is not "Finder"
end tell
repeat with theApp in appList
    try
        tell application theApp to quit
    end try
end repeat
